from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.views.generic import list_detail
from core.models import Course

course_info = {
	"queryset": Course.objects.all(),
}

urlpatterns = patterns('',
	(r'^$', direct_to_template, {'template': 'index.html'}),
	(r'^przedmioty/$', list_detail.object_list, { 'queryset': Course.objects.all(), 'template_name': 'przedmioty.html', 'template_object_name': 'przedmioty'})

)
